Timeline Class Reference

#include <Timeline.h>

List of all members.

Public Member Functions

 Timeline ()
osg::Node * createScalarBar ()
osg::ref_ptr< osg::Group > getQuadGroup ()
osg::Node * getTimelineNode ()
void fillVerticesArray ()
void fillQuadsArray (int i)
osg::ref_ptr< osg::Group > createQuads ()
osg::Node * createLines ()

Private Attributes

osg::Group * timelineNode
osg::ref_ptr< osg::Group > quadGroup
int numOfPoints
int numOfIntervals
osg::Vec3Array * vertices
osg::Vec3 quads [4]


Detailed Description

TimeLine class. The frames of the TraffEdu system is hold here.

Definition at line 5 of file Timeline.h.


Constructor & Destructor Documentation

Timeline::Timeline (   ) 
 

A constructor. initializes private members calls createScalarBar and adds the returned node to the root calls createLines and adds the returned node to the root calls createQuads and adds the returned node to the root

See also:
createScalarBar()

createLines()

createQuads()

Definition at line 2 of file Timeline.cpp.

References createLines(), createQuads(), createScalarBar(), numOfIntervals, numOfPoints, quadGroup, timelineNode, and vertices.


Member Function Documentation

osg::Node * Timeline::createLines (   ) 
 

a normal member.

Returns:
pointer to osg::Node. create quads.

Definition at line 130 of file Timeline.cpp.

References fillVerticesArray(), numOfPoints, and vertices.

Referenced by Timeline().

osg::ref_ptr< osg::Group > Timeline::createQuads (   ) 
 

a normal member.

Returns:
osg::ref_ptr to osg::Group. returns node of the timeline.

Definition at line 75 of file Timeline.cpp.

References fillQuadsArray(), quadGroup, and quads.

Referenced by Timeline().

osg::Node * Timeline::createScalarBar (   ) 
 

a normal member.

Returns:
pointer to osg::Node. creates a scalar bar

Definition at line 14 of file Timeline.cpp.

Referenced by Timeline().

void Timeline::fillQuadsArray (  int  i  ) 
 

a normal member taking one argument.

Parameters:
i int fills quad array to draw quads .

Definition at line 58 of file Timeline.cpp.

References quads.

Referenced by createQuads().

void Timeline::fillVerticesArray (   ) 
 

a normal member. fills vertice array to draw vertices .

Definition at line 39 of file Timeline.cpp.

Referenced by createLines().

osg::ref_ptr< osg::Group > Timeline::getQuadGroup (   ) 
 

a normal member.

Returns:
osg::ref_ptr to osg::Group. returns a quad's Group

Definition at line 28 of file Timeline.cpp.

References quadGroup.

Referenced by CtimelineView::SetSceneData().

osg::Node * Timeline::getTimelineNode (   ) 
 

a normal member.

Returns:
pointer to osg::Node. returns node of the timeline.

Definition at line 34 of file Timeline.cpp.

References timelineNode.

Referenced by CtimelineView::SetSceneData().


Member Data Documentation

int Timeline::numOfIntervals [private]
 

Definition at line 11 of file Timeline.h.

Referenced by Timeline().

int Timeline::numOfPoints [private]
 

Definition at line 10 of file Timeline.h.

Referenced by createLines(), and Timeline().

osg::ref_ptr<osg::Group> Timeline::quadGroup [private]
 

Definition at line 9 of file Timeline.h.

Referenced by createQuads(), getQuadGroup(), and Timeline().

osg::Vec3 Timeline::quads[4] [private]
 

Definition at line 13 of file Timeline.h.

Referenced by createQuads(), and fillQuadsArray().

osg::Group* Timeline::timelineNode [private]
 

Definition at line 8 of file Timeline.h.

Referenced by getTimelineNode(), and Timeline().

osg::Vec3Array* Timeline::vertices [private]
 

Definition at line 12 of file Timeline.h.

Referenced by createLines(), and Timeline().


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:14 2006 for TraffEdu by  doxygen 1.4.6-NO